<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body ng-controller="myCtrl">
	<div>
	用户有两种角色：普通用户和管理员
	</div>
	<select ng-model="role">
		<option value="user">User</option>
		<option value="admin">Admin</option>
	</select>
	
	<br/><br/><br/>
	
	<div>
		<span>界面元素权限控制</span>
		<button hope-access="btn01">Admin和User都有此权限</button>
		<button hope-access="btn02">只有Admin才有点击权限以及查看权限</button>
		<button hope-access="btn03" hope-access-level="disabled">只有Admin才有点击权限，User只可查看不可点击</button>
	</div>
	<br/>
	<span>点击跳转</span>
	<ul>
		<li ng-click="go('cart')">购物车</li>
		<li ng-click="go('collect_list')">收藏夹</li>
		<li ng-click="go('spm')">退款维权</li>
		<li ng-click="go('rate')">评价管理</li>
	</ul>
	<div ui-view></div>
	
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="http://cdn.bootcss.com/angular.js/1.5.8/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.10/angular-ui-router.min.js"></script>
<script src="static/js/base/app.js"></script>

</body>
</html>